package com.localjoycommunity.cpdj.project.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.localjoycommunity.cpdj.framework.aspectj.lang.annotation.Excel;
import lombok.Data;

import java.util.Date;

/**
 * @Author: lida
 * @Date: 2020/12/15 0015 上午 10:21
 * @Description:
 */
@Data
public class UserCourseWatch {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Long courseId;
    private Integer userId;
    @Excel(name = "用户名")
    @TableField(exist = false)
    private String userName;
    @Excel(name = "课程名")
    private String courseName;
    private int watchCurrent;
    @Excel(name = "当前观看至")
    private String watchProgress;
    @Excel(name = "是否学完（0未学完；1已学完）")
    private int isComplate;
    @Excel(name = "观看次数")
    private int watchNum;
    @Excel(name = "最近学习时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private int allWatchTime;
    @Excel(name = "总学习时间")
    private String allStudyTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
